<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Images */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="images-form">

    <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data','onsubmit'=>'return framt()']]); ?>


    <?= $form->field($model, 'type')->dropDownList($typemodel) ?>

    <?= $form->field($model, 'img_name')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'url')->fileInput() ?>
    <?= $form->field($model, 'Porright')->dropDownList(['1'=>'有','0'=>'没有']) ?>

    <?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>
    <?=$this->render('address') ?>
    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '上传' : '保存', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
